package com.jxd.ordering.controller;

import com.jxd.ordering.service.IDictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @ClassName DictController
 * @Description TODO
 * @Author Ankailong
 * @Date 2022/9/25
 * @Version 1.0
 */
@RestController
public class DictController {
    @Autowired
    private IDictService dictService;

    /**
     * 获取所有数据字典信息
     * level: 1
     * @return 查询结果集合
     */
    @RequestMapping("/getAllDict")
    public Map<String, Map<String, Map<String, String>>> getAllDict() {
        return dictService.getAllDict();
    }
}
